var e = require("../../@babel/runtime/helpers/interopRequireDefault"), t = e(require("../../@babel/runtime/regenerator")), r = require("../../@babel/runtime/helpers/asyncToGenerator"), a = new (e(require("../../http/offlineShop")).default)();

Page({
    data: {
        details: {}
    },
    onLoad: function() {
        this.getImg();
    },
    toIndex: function() {
        wx.switchTab({
            url: "/pages/index/index"
        });
    },
    getImg: function() {
        var e = this;
        return r(t.default.mark(function r() {
            var n;
            return t.default.wrap(function(t) {
                for (;;) switch (t.prev = t.next) {
                  case 0:
                    return t.next = 2, a.getPaySucessPopup();

                  case 2:
                    0 != (n = t.sent).data.length && (e.setData({
                        details: n.data[0]
                    }), e.selectComponent("#ad").showPopup());

                  case 4:
                  case "end":
                    return t.stop();
                }
            }, r);
        }))();
    }
});